
webConfig = 
  ###*
   * [getHeader description]
   * @param  {[type]} selectedIndex [description]
   * @return {[type]}               [description]
  ###
  getHeader : (selectedIndex) ->
    selectedIndex = selectedIndex || 0
    headerInfo = 
      nav : [
        {
          name : '首页'
          href : '/ys'
        }
        # {
        #   name : '奶粉'
        #   href : '#'
        # }
        # {
        #   name : '饮料'
        #   href : '#'
        # }
        {
          name : '产品列表'
          href : '/ys/table'
        }
      ]
      selectedIndex : selectedIndex
    return headerInfo
  getUserInfo : (req) ->
    host = 'http://' + req.headers?.host
    userInfo = 
      host : host
      paths :
        home : '/ys'
        table : '/ys/table'
module.exports = webConfig